import request from '@/utils/request'

// 查询工序工艺列表
export function listProcessTec(query) {
  return request({
    url: '/technology/processTec/list',
    method: 'get',
    params: query
  })
}

// 查询工序工艺详细
export function getProcessTec(id) {
  return request({
    url: '/technology/processTec/' + id,
    method: 'get'
  })
}

// 新增工序工艺
export function addProcessTec(data) {
  return request({
    url: '/technology/processTec',
    method: 'post',
    data: data
  })
}

// 修改工序工艺
export function updateProcessTec(data) {
  return request({
    url: '/technology/processTec',
    method: 'put',
    data: data
  })
}

// 删除工序工艺
export function delProcessTec(id) {
  return request({
    url: '/technology/processTec/' + id,
    method: 'delete'
  })
}
